package com.hdoit.ares.web.insu.modelconfig;
import com.hdoit.ares.web.insu.providers.FanhuaAccidentAppStatusProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      caochengmeng
 * @email       
 * @createtime  2017年12月25日 17:56:24
 * @comment
 */
public class FanhuaAccidentConfig extends ModelMetadataAttributeConfiguration{
    public FanhuaAccidentConfig(){
        this.setProperty("customerId")
            .hasAttribute(new DisplayNameAttribute("客户Id"));

        this.setProperty("startTime")
            .hasAttribute(new DisplayNameAttribute("保单起保日期"))
            .hasAttribute(new DateTimeAttribute());

        this.setProperty("orderState")
            .hasAttribute(new DisplayNameAttribute("订单状态"));

        this.setProperty("insureComName")
            .hasAttribute(new DisplayNameAttribute("保险公司名称"));

        this.setProperty("submitTime")
            .hasAttribute(new DisplayNameAttribute("订单创建日期"))
            .hasAttribute(new DateTimeAttribute());

        this.setProperty("totalAmount")
            .hasAttribute(new DisplayNameAttribute("订单金额"));

        this.setProperty("orderNum")
            .hasAttribute(new DisplayNameAttribute("份数"));

        this.setProperty("endTime")
            .hasAttribute(new DisplayNameAttribute("保单失效日期"))
            .hasAttribute(new DateTimeAttribute());

        this.setProperty("productName")
            .hasAttribute(new DisplayNameAttribute("险种名称"));

        this.setProperty("orderId")
            .hasAttribute(new DisplayNameAttribute("订单号"));

        this.setProperty("productId")
            .hasAttribute(new DisplayNameAttribute("险种Id"));

        this.setProperty("insuredIdNo")
            .hasAttribute(new DisplayNameAttribute("被保人证件号"));

        this.setProperty("insuredEmail")
            .hasAttribute(new DisplayNameAttribute("被保人邮箱"));

        this.setProperty("insuredBirthday")
            .hasAttribute(new DisplayNameAttribute("被保人出生年月"));

        this.setProperty("insuredAppntShip")
            .hasAttribute(new DisplayNameAttribute("投被保人关系"));

        this.setProperty("insuredName")
            .hasAttribute(new DisplayNameAttribute("被保人姓名"));

        this.setProperty("insuredMobile")
            .hasAttribute(new DisplayNameAttribute("被保人手机号"));

        this.setProperty("insuredSex")
            .hasAttribute(new DisplayNameAttribute("被保人性别"));

        this.setProperty("insuredIdType")
            .hasAttribute(new DisplayNameAttribute("被保人证件类型"));

        this.setProperty("appntBirthday")
            .hasAttribute(new DisplayNameAttribute("被保人出生年月"));

        this.setProperty("appntIdType")
            .hasAttribute(new DisplayNameAttribute("投保人证件类型"));

        this.setProperty("appntIdNo")
            .hasAttribute(new DisplayNameAttribute("投保人证件号码"));

        this.setProperty("appntMobile")
            .hasAttribute(new DisplayNameAttribute(" 投保人手机号"));

        this.setProperty("appntName")
            .hasAttribute(new DisplayNameAttribute("投保人姓名"));

        this.setProperty("appntSexName")
            .hasAttribute(new DisplayNameAttribute("投保人性别"));

        this.setProperty("appntEmail")
            .hasAttribute(new DisplayNameAttribute("投保人邮箱"));

        this.setProperty("noticeMsg")
            .hasAttribute(new DisplayNameAttribute("提示信息"));

        this.setProperty("noticeCode")
            .hasAttribute(new DisplayNameAttribute("提示信息代码"));

        this.setProperty("appStatus")
            .hasAttribute(new DisplayNameAttribute("保单状态"))
            .hasAttribute(new DropDownListAttribute(new FanhuaAccidentAppStatusProvider()));

        this.setProperty("policyNo")
            .hasAttribute(new DisplayNameAttribute("保单号"));

        this.setProperty("downloadURL")
            .hasAttribute(new DisplayNameAttribute("当保网有电子保单时，此字段值为保网电子保单下载地址。"));

    }
}